﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using App_Code.PublicHelper;

public partial class dataproduct_detail : System.Web.UI.Page
{
    public DataSet ds;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.QueryString["id"];
            if (!string.IsNullOrEmpty(id))
            {
                ds = DataProductHelper.QueryByID(int.Parse(id));
                if (ds != null && ds.Tables[0].Rows.Count == 1)
                {
                    System.Data.DataRow row = ds.Tables[0].Rows[0];
                    this.Title = row["NAME"].ToString();
                }
                DataProductHelper.UpdateHits(int.Parse(id));
            }
        }
    }
}
